package com.zl.codereview.git.model;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 作者
 */
public class GitAuthor implements Serializable {

    private String username;

    private String email;

    private Date maxTime;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Date maxTime) {
        this.maxTime = maxTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GitAuthor author = (GitAuthor) o;
        return Objects.equals(username, author.username) && Objects.equals(email, author.email);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username, email);
    }
}
